package tt.dz.appserver.service.business;

import org.apache.avro.AvroRemoteException;

import com.alibaba.fastjson.JSONObject;

import tt.dz.appserver.entity.model.ResultMappingEntity;

/**
 * 电桩基本业务接口
 * @author Administrator
 *
 */
public interface ChargerService {
	
	/**
	 * 获取站点下面空闲桩的数量
	 * @param stationId
	 * @return
	 */
	public JSONObject getFreeChargerNum(String stationId) throws AvroRemoteException ;
	
	/**
	 * 获取站点下桩子列表
	 * @param stationId
	 * @return
	 */
	public JSONObject getChargerListByStationId(String stationId) throws AvroRemoteException ;
	
	/**
	 * 获取电桩详细
	 * @param chargerId
	 * @return
	 */
	public JSONObject getChargerDetailByChargerId(String chargerId) throws AvroRemoteException ;
	
	/**
	 * 获取电桩详细
	 * @param chargerId
	 * @return
	 */
	public JSONObject getChargerDetailByQrCode(String qrCode) throws AvroRemoteException ;
	
	/**
	 * 获取电桩枪头状态
	 * @param chargerId
	 * @param plugNo
	 * @return
	 */
	public JSONObject getChargerPlugStatus(String chargerId, String plugNo) throws AvroRemoteException ;
	
	/**
	 * 获取用户正在使用的桩
	 * @param userId
	 * @return
	 */
	public JSONObject getUsingChargerByUserId(String userCard) throws AvroRemoteException ;
	
	/**
	 * 获取电桩下的枪头列表
	 * @param chargerId
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject getPlugsListByChargerId(String chargerId) throws AvroRemoteException ;
	
	/**
	 * 获取费率
	 * @param chargerId
	 * @return
	 * @throws AvroRemoteException
	 */
	public ResultMappingEntity getRate(String chargerId) throws AvroRemoteException ;

}
